package com.ly.emp.bean.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 复杂表头-VO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "复杂动态表头VO")
public class DynamicTableHeadAndChildrenListVO {

    @Schema(description = "表头字段名（和数据列表属性名对应）")
    private String headCode;

    @Schema(description = "表头名称")
    private String headName;

    @Schema(description = "权重值")
    private Integer value;

    @Schema(description = "下级表头数据")
    private List<DynamicTableHeadAndChildrenListVO> children = null;

    public DynamicTableHeadAndChildrenListVO(String headCode, String headName,Integer value) {
        this.headCode = headCode;
        this.headName = headName;
        this.value = value;
    }
}
